void main() {
    //两数取最大
    int a = 5;
    int b = 10;
    int max = (a > b) ? a : b;
    System.out.println(max);

    //三数取最大
    int a1 = 5;
    int b1 = 10;
    int c1 = 20;
    int max1 =(a1 > b1 ) ? ((a1 > c1) ? a1 : c1) :((b1 > c1) ? b1 : c1);
    System.out.println(max1);
}